Get timeperiods
GET/timestreams/:timestreamId/snapshot
Get timeperiods for the specified timestream with support for paging
Request
Path Parameters
The id of the timestream
Query Parameters
Default value: 25
The number of results per page
Default value: 1
The page of results to return
If not supplied, the current time is used
Header Parameters
OneBasket API Key
Responses
- 200
- 400
- 401
- 404
The request has succeeded.
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- Timeperiods.PrimaryPeriodDto
- Timeperiods.CollectionPeriodDto
- Timeperiods.ProductAvailabilityPeriodDto
- Primary
- Collection
- ProductAvailability
- Primary
- Collection
- ProductAvailability
- Primary
- Collection
- ProductAvailability
- ]
The current page of results
The number of results per page
The total number of pages
The total number of results
True if there is a next page
True if there is a previous page
results object[]required
The results for the current page
Possible values: [Primary]
The type of the timeline
Possible values: [Primary, Collection, ProductAvailability]
Discriminator for timeline types
circular(Timeperiods.PrimaryPeriodDto)
Possible values: [Collection]
The type of the timeline
The capacity that can be served in this timeperiod
Possible values: [ProductAvailability]
The type of the timeline
The availability group for this period
The unique identifier of the timeperiod
The unique identifier of the parent timestream
The unique identifier of the parent timeline
The title of the timeperiod
The description of the timeperiod
The start time of the timeperiod
The duration of the timeperiod
The end time of the timeperiod
Possible values: [Collection]
The type of the timeline
The capacity that can be served in this timeperiod
Possible values: [Primary, Collection, ProductAvailability]
Discriminator for timeline types
Possible values: [Primary]
The type of the timeline
circular(Timeperiods.CollectionPeriodDto)
Possible values: [ProductAvailability]
The type of the timeline
The availability group for this period
The unique identifier of the timeperiod
The unique identifier of the parent timestream
The unique identifier of the parent timeline
The title of the timeperiod
The description of the timeperiod
The start time of the timeperiod
The duration of the timeperiod
The end time of the timeperiod
Possible values: [ProductAvailability]
The type of the timeline
The availability group for this period
Possible values: [Primary, Collection, ProductAvailability]
Discriminator for timeline types
Possible values: [Primary]
The type of the timeline
Possible values: [Collection]
The type of the timeline
The capacity that can be served in this timeperiod
circular(Timeperiods.ProductAvailabilityPeriodDto)
The unique identifier of the timeperiod
The unique identifier of the parent timestream
The unique identifier of the parent timeline
The title of the timeperiod
The description of the timeperiod
The start time of the timeperiod
The duration of the timeperiod
The end time of the timeperiod
{
"page": 0,
"pageSize": 0,
"pageTotal": 0,
"resultsTotal": 0,
"hasNextPage": true,
"hasPreviousPage": true,
"results": [
{},
{},
{}
]
}
The server could not understand the request due to invalid syntax.
- application/json
- Schema
- Example (from schema)
Schema
A URI reference [RFC3986] that identifies the problem type.
Possible values: [Bad request]
A short, human-readable summary of the problem type.
Possible values: [400]
The HTTP status code([RFC7231], Section 6) generated by the origin server for this occurrence of the problem.
A human-readable explanation specific to this occurrence of the problem.
A URI reference that identifies the specific occurrence of the problem.
errors objectrequired
{
"type": "string",
"title": "Bad request",
"status": 400,
"detail": "string",
"instance": "string",
"errors": {}
}
Access is unauthorized.
- application/json
- Schema
- Example (from schema)
Schema
A URI reference [RFC3986] that identifies the problem type.
Possible values: [Unauthorized]
A short, human-readable summary of the problem type.
Possible values: [401]
The HTTP status code([RFC7231], Section 6) generated by the origin server for this occurrence of the problem.
A human-readable explanation specific to this occurrence of the problem.
A URI reference that identifies the specific occurrence of the problem.
{
"type": "string",
"title": "Unauthorized",
"status": 401,
"detail": "string",
"instance": "string"
}
The server cannot find the requested resource.
- application/json
- Schema
- Example (from schema)
Schema
A URI reference [RFC3986] that identifies the problem type.
Possible values: [Not Found]
A short, human-readable summary of the problem type.
Possible values: [404]
The HTTP status code([RFC7231], Section 6) generated by the origin server for this occurrence of the problem.
A human-readable explanation specific to this occurrence of the problem.
A URI reference that identifies the specific occurrence of the problem.
{
"type": "string",
"title": "Not Found",
"status": 404,
"detail": "string",
"instance": "string"
}